QT       += core gui

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets network sql multimedia serialport

CONFIG += c++17

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    animatedbutton.cpp \
    dataprovider.cpp \
    debouncehandler.cpp \
    digitalkeyboard.cpp \
    floatbutton.cpp \
    localdb.cpp \
    logindialog.cpp \
    main.cpp \
    mainwindow.cpp \
    material.cpp \
    materiallist.cpp \
    materialtypelist.cpp \
    netprinter.cpp \
    networkmanager.cpp \
    passworddialog.cpp \
    printer.cpp \
    printerclient.cpp \
    printerinfodialog.cpp \
    record.cpp \
    recorddetail.cpp \
    recordlist.cpp \
    securehttpclient.cpp \
    shopinfo.cpp \
    tscprinter.cpp \
    tsplcmd.cpp \
    usbprinter.cpp \
    utils.cpp \
    virtualkeyboard.cpp

HEADERS += \
    animatedbutton.h \
    dataprovider.h \
    debouncehandler.h \
    digitalkeyboard.h \
    floatbutton.h \
    localdb.h \
    logindialog.h \
    mainwindow.h \
    material.h \
    materiallist.h \
    materialtypelist.h \
    netprinter.h \
    networkmanager.h \
    passworddialog.h \
    printer.h \
    printerclient.h \
    printerinfodialog.h \
    record.h \
    recorddetail.h \
    recordlist.h \
    securehttpclient.h \
    shopinfo.h \
    tscprinter.h \
    tsplcmd.h \
    usbprinter.h \
    utils.h \
    virtualkeyboard.h

include(qtpromise-0.7.0/qtpromise.pri)

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

RESOURCES += \
    hydxq.qrc

RC_ICONS = logo.ico

# win32 {
#     QMAKE_POST_LINK += $$quote(xcopy /Y /D "$$PWD/TSCLIB.dll" "$$OUT_PWD/")
# }
